package com.cakeclient.database;


public class LocalPriceHTTable extends DatabaseTable {
    public static final String TABLESNAME = "LocalPriceHTTable";
    public static final String REMOTE_ID = "remoteId";
    public static final String ID = "_id";
    public static final String VALUE = "value";
    public static final String ID_DELIVERYTYPE = "idDeliveryType";
    public static final String ID_STORE = "idStore";


    public static final String[] ALLFIELDS = new String[]{
            ID,
            REMOTE_ID,
            VALUE,
            ID_DELIVERYTYPE,
            ID_STORE
    };

    public static final String CREATE = "CREATE TABLE " + TABLESNAME
            + " ( "
            + ID + " INTEGER PRIMARY KEY AUTOINCREMENT , "
            + REMOTE_ID + " INTEGER ,"
            + VALUE + " REAL , "
            + ID_DELIVERYTYPE + " INTEGER , "
            + ID_STORE + " INTEGER ); ";

    private static DatabaseTable ourInstance = new LocalPriceHTTable();


    @Override
    public String getTableName() {
        return TABLESNAME;
    }

    @Override
    public String[] getAllFields() {
        return ALLFIELDS;
    }

    @Override
    public String getCreate() {
        return CREATE;
    }

    public static DatabaseTable getInstance() {
        return ourInstance;
    }

    private LocalPriceHTTable() {
    }
}
